package com.ch.gsyvideo;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

public class MainActivity extends AppCompatActivity {
    private SuperRedVideoPlayer mGsyPlayer;
    private String url="http://cctvalih5ca.v.myalicdn.com/live/cctv5_2/index.m3u8";
    private  int raw;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        initView();
        VideoManager.getDefault().startPlay(this,mGsyPlayer,url,true);

    }

    private void initView(){
        mGsyPlayer=findViewById(R.id.gsy_player);
    }
}
